import request from '@/utils/request'

// 查询低耐资产列表
export function listDinai(query) {
  return request({
    url: '/system/dinai/list',
    method: 'get',
    params: query
  })
}

// 查询低耐资产详细
export function getDinai(id) {
  return request({
    url: '/system/dinai/' + id,
    method: 'get'
  })
}

// 新增低耐资产
export function addDinai(data) {
  return request({
    url: '/system/dinai',
    method: 'post',
    data: data
  })
}

// 修改低耐资产
export function updateDinai(data) {
  return request({
    url: '/system/dinai',
    method: 'put',
    data: data
  })
}

// 删除低耐资产
export function delDinai(id) {
  return request({
    url: '/system/dinai/' + id,
    method: 'delete'
  })
}

export function listByChange4Dinai(query) {
  return request({
    url: '/system/dinai/listByChange',
    method: 'get',
    params: query
  })
}